package cn.nange.cmfz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class Resource {
    @TableId(value = "resource_id",type = IdType.AUTO)
    @JsonProperty(value = "id")
    private Integer resourceId;
    @JsonProperty(value = "title")
    private String resourceName;
    private String resourceUrl;
    private String resourceType;
    private String resourcePermission;
    private String resourceParentId;
    @TableField(exist = false)
    @JsonProperty(value = "children")
    private List<Resource> childrens;
}
